set -e

build_cmd="g++ -fopenmp --std=c++11 -O3 case.cpp -o softmax"

eval=1
perf=0

if [ $eval -eq 1 ]; then
    ${build_cmd} -DEVAL
    cmd="./softmax"
    $cmd
fi
if [ $perf -eq 1 ]; then
    ${build_cmd} -DPERF
    cmd="./softmax"
    $cmd
fi

# python3 ../../tools/dump_bin.py data/c1_dst.bin